package com.ygq.manageGame.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ygq.manageGame.bean.Manage;
import com.ygq.manageGame.dao.ManageMapper;
import com.ygq.manageGame.service.ManageService;
import org.apache.catalina.Manager;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class ManageServiceImpl extends ServiceImpl<ManageMapper, Manage> implements ManageService {
    @Resource
    private ManageMapper manageMapper;
    @Override
    public Boolean CheckManageExist(Manage manage) {
       return manageMapper.isAdminExists(manage.getAdminName(), manage.getPassword());
    }

    @Override
    public Boolean RegisterAdmin(Manage manage) {
        return manageMapper.RegisterAdmin(manage.getAdminName(),manage.getPassword());
    }
}
